package com.jml.蚂蚁.socket.tcp;

import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.net.SocketAddress;


public class ClientTcpSocket多线程 {
    public static void main(String[] args) {
        try {
            Socket socket = new Socket();
            SocketAddress address = new InetSocketAddress(InetAddress.getLocalHost(), 8080);
            socket.connect(address);
            socket.getOutputStream().write("jml".getBytes());
        } catch (Exception e) {

        }
    }
}
